<?php
namespace app\common\controller;

use think\Request;
use app\common\service\Menu as MenuService;
use app\common\tool\Query;


class FrontBase extends Base{

    protected $user = null;

    protected $param = [];

    public function __construct(Request $request){
        parent::__construct($request);
        $menuService = new MenuService();
        $tree = $menuService -> getMenusTree();

        $query = new Query();

        $this->param['tree'] = $tree;
        $this->param['query'] = $query;
        $this->param['user'] = $this->user;
    }
}